cmake_minimum_required(VERSION 3.5.1)

project(amd-backlight LANGUAGES CXX VERSION 0.0.1)

add_executable(${PROJECT_NAME} main.cpp)

# 示例集合
option(ENABLE_BUILD_EXAMPLES "Enable Build Examples." OFF)
if(ENABLE_BUILD_EXAMPLES)
    include(examples/dev.cmake)
endif(ENABLE_BUILD_EXAMPLES)

install(TARGETS ${PROJECT_NAME} 
    DESTINATION bin)
# man page need gz ?
install(FILES docs/amd-backlight.1
    DESTINATION share/man/man1/)

# 注释行(使用方式)
find_package(DebPackage PATHS ${CMAKE_SOURCE_DIR})
add_package_descript(cmake/package-deb.descript)